package com.forclass;

public class FactoryClassTest {
    public static void main(String[] args) {
        IBook mathBook = FactoryClass.getInstance("com.forclass.MathBook");
        mathBook.read();
        IBook proBook = FactoryClass.getInstance("com.forclass.ProgramBook");
        proBook.read();
    }
}
